package com.platform.service.impl;

import com.platform.dao.GiftTypeDao;
import com.platform.entity.GiftTypeEntity;
import com.platform.service.GiftTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("giftTypeService")
public class GiftTypeServiceImpl implements GiftTypeService {
    @Autowired
    private GiftTypeDao giftTypeDao;

    @Override
    public List<GiftTypeEntity> queryList() {
        return giftTypeDao.queryList(null);
    }

    @Override
    public int queryTotal() {
        return giftTypeDao.queryTotal();
    }

    @Override
    public int save(GiftTypeEntity giftTypeEntity) {
        return giftTypeDao.save(giftTypeEntity);
    }

    @Override
    public int update(GiftTypeEntity giftTypeEntity) {
        return giftTypeDao.update(giftTypeEntity);
    }

    @Override
    public int deleteBatch(Integer[] ids) {
        return giftTypeDao.deleteBatch(ids);
    }

    @Override
    public GiftTypeEntity queryObject(Integer id) {
        return giftTypeDao.queryObject(id);
    }
}
